﻿#ifndef COMMUNICATIONPAGE_H
#define COMMUNICATIONPAGE_H

#include <QWidget>
#include <QScrollBar>
#include <QDebug>
#include "selfinfo.h"
#include "otherinfo.h"
namespace Ui {
class CommunicationPage;
}

class CommunicationPage : public QWidget
{
    Q_OBJECT

public:
    explicit CommunicationPage(QWidget *parent = nullptr);
    ~CommunicationPage();

    void setItem(QWidget* cItem);
    QWidget* getItem();
    void appendInfoItem(QWidget* infoItem);
    void insertInfoItem(QWidget *infoItem);
    void setLastTime(const qint64 &lastTime);
    qint64 getLastTime();

private:
    Ui::CommunicationPage *ui;
    QWidget* cItem;
    QScrollBar* scrollBar;
    qint64 lastTime;//设置初始时间为0
};

#endif // COMMUNICATIONPAGE_H
